/**
 * ConfigurationConstGraphics.java
 * 
 * @author Beatrice Bacelli
 * @author Luca Bedogni
 * @author Silvia Righini
 */

package unibo.lsb.graphic;

/**
 * This class holds constants useful for the graphics
 */
public class ConfigurationConstGraphics {

	// about icons
	/**
	 * Index/name of the first icon
	 */
	public static final int ICON_START = 1;
	/**
	 * Index/name of the last icon
	 */
	public static final int ICON_END = 36;
	/**
	 * Length of the standard icon name
	 */
	public static final int ICON_NAME_LENGTH = 2;
	/**
	 * Extension of the icon images
	 */
	public static final String ICON_EXT = ".png";
	/**
	 * Path to the location of the icon images
	 */
	public static final String ICON_PATH = "/unibo/lsb/res/avatar/";

	// die faces
	/**
	 * Extension of the die faces images
	 */
	public static final String DIEF_EXT = ".png";
	/**
	 * Path to the locatio of the die faces images
	 */
	public static final String DIEF_PATH = "/unibo/lsb/res/die_faces/";

	public static final int MAX_USERNAME_LENGTH = 8;

	/**
	 * Path to the main window image
	 */
	public static final String MAIN_PAGE_IMG = "/unibo/lsb/res/dice.jpg";

	/**
	 * Padding from top of the upper line of user panels in the game table main
	 * window
	 */
	public static final int PADDING_FROM_TOP = 5;
	/**
	 * Padding from right of the leftmost user panel in the game table main
	 * window.
	 */
	public static final int PADDING_FROM_RIGHT = 5;

	// game window
	public static final String TABLE_IMG = "/unibo/lsb/res/tavolobkg.jpg";

	/**
	 * Text must replace previous text in panel
	 */
	public static final int SET_TEXT = 0;
	/**
	 * Text must be added to previously present text in panel
	 */
	public static final int ADD_TEXT = 1;
	/**
	 * Newline value
	 */
	public static final String NEWLINE = "\n";

	/**
	 * Value to indicate the passed dice has been accepted by the player
	 */
	public static final int DICE_ACCEPTED = 0;
	/**
	 * Value to indicate the passed dice has been doubted by the player
	 */
	public static final int DICE_DOUBTED = 1;
	/**
	 * Value to indicate the passed dice was 21 and has been accepted by the
	 * player
	 */
	public static final int DICE_21ACCEPTED = 2;
	/**
	 * Indicates a minimal closing of window can be done without harm
	 */
	public static final int MINIMAL_CLOSE = 0;
	/**
	 * Indicates the operation is non recoverable and the whole game must be
	 * closed
	 */
	public static final int TOTAL_CLOSE = 1;
}
